/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.app.service;

import java.util.List;

import com.xw.app.model.AcctUser;
import com.xw.framework.base.service.BaseService;
import com.xw.framework.vo.UserMenu;

/**
 * The Interface AcctUserService.
 *
 * @author Xi Wei
 */
public interface AcctUserService extends BaseService<AcctUser,Long>{

	/**
	 * Gets the user by login name.
	 *
	 * @param loginName the login name
	 * @return the user by login name
	 */
	AcctUser getUserByLoginName(String loginName);

	/**
	 * Gets the user and rolesby id.
	 *
	 * @param id the id
	 * @return the user and rolesby id
	 */
	AcctUser getUserAndRolesbyId(Long id);

	/**
	 * Gets the menu list for user.
	 *
	 * @param user the user
	 * @return the menu list for user
	 */
	List<UserMenu> getMenuListForUser(AcctUser user);

}
